﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

using EditorialAdministration;
using AutomationAdmin.ViewModels;

namespace AutomationAdmin.Views
{
    public partial class Home : Page
    {
        public Home()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
        {
            if (sender == _linkAutmationApps)
            {
                App.CurrentAppState.NavPath = "/Views/AutomationAppListPage.xaml";
                return;
            }

            if (sender == _linkUserRequestTracking)
            {
                App.CurrentAppState.NavPath = "/Views/RequestTrackingPage.xaml";
                return;
            }

            if (sender == _linkReports)
            {
                App.CurrentAppState.NavPath = "/Views/ReportListPage.xaml";
                return;
            }

            if (sender == _linkRequestNew)
            {
                App.CurrentAppState.NavPath = "/Views/RequestNewPage.xaml";
            }
        }

    }
}
